﻿#ifndef DISCWIDGET_H
#define DISCWIDGET_H
#include <Windows.h>
#include <qboxlayout.h>
#include <QCheckBox>
#include <QProgressBar>
#include <QLabel>
#include <QPushButton>
#include <qscrollarea.h>
#include <QWidget>
#include "DIscWidget_global.h"

class DISCWIDGET_EXPORT DiscWidget : public QWidget {
Q_OBJECT;
	QScrollArea* area;
	QVBoxLayout* boxLayout;
	QHBoxLayout* areaBoxLayout;
	QWidget* areadWidget;
	QVector<QWidget*> subComponts;
	QHash<QString, QHash<QString, long long>> discInfo;
	QHash<QPushButton*, QLabel*> pushButtoninfo;
	QHash<QPushButton*, QString> disc;
	QHash<QLabel*, QHash<QString, ULARGE_INTEGER>> checkBoxsinfo;
public:
	DiscWidget(QWidget* parent = Q_NULLPTR
		, const Qt::WindowFlags& f = Qt::WindowFlags( ));
	void setDiscs(QHash<QString, QHash<QString, ULARGE_INTEGER>>* discInfo);
	long long getGb(ULARGE_INTEGER& obj);
	void copyInfo(bool flage);
};
#endif // DISCWIDGET_H
